package models

// 奖品表
type MaLotteryPrize struct {
	ID          string `gorm:"primaryKey;column:id;autoIncrement;type:bigint unsigned;not null;comment:唯一ID" json:"id" json_old:"ID"`
	Sort        int    `gorm:"column:sort;type:int;size:64;comment:排序值" json:"sort"`
	PrizeRuleId string `gorm:"column:prize_rule_id;type:int;size:64;not null;default:0;comment:奖项规则ID" json:"prize_rule_id"`
	Num         int    `gorm:"column:num;type:int;size:64;not null;default:0;comment:奖品数量" json:"num"`
	Name        string `gorm:"column:name;type:varchar(30);not null;comment:奖品名称" json:"name"`
	PrizeImg    string `gorm:"column:prize_img;type:varchar(100);not null;comment:奖品图片地址" json:"prize_img"`

	CreatedAt int64 `gorm:"column:created_at;autoCreateTime;type:int;size:64;comment:创建时间" json:"created_at"`
	UpdatedAt int64 `gorm:"column:updated_at;autoUpdateTime;type:int;size:64;comment:修改时间" json:"updated_at"`
	DeletedAt int64 `gorm:"column:deleted_at;type:int;size:64;default:0;comment:删除时间" json:"deleted_at"`
}

func (m MaLotteryPrize) TableName() string {
	return "ma_lottery_prize"
}
